<div ng-controller="scoreShopSearchValueCtrl
">
    <style>
        table td,table th{vertical-align: middle;height: 50px;text-align: center;font-size: 14px;}
    </style>
    <div class="form-group" style="margin-top: 20px;">

        <form><label class="control-label">小区名称：</label>
        <select ng-options="m.objId as m.communityName for m in communityList.data" ng-model="input.communityName" id = "option_xq" required ng-change = 'getGoodsList(input.communityName)'>
            <option value="">-- 请选择 --</option>
        </select>
        <span style="margin-left: 20px;">用户昵称：<input type="text" ng-model="input.userName" required></span>
        <span style="margin-left: 20px;">去除400小号：<input type="checkbox" /></span>
        <button style="margin-left: 20px;" type="submit" class="btn-primary btn-sm  " ng-click="getAtList(input)">搜索</button></form>
    </div>

    <div class="tab-content">
        <div class="tab-pane active" id="tab_a">
            <paging>
                <ul class="pagination" num-pages="tasks.pageCount" current-page="tasks.currentPage"
                    on-select-page="selectPage(page)">
                    <li ng-class="{disabled: noPrevious()}"><a href="javascript:;" ng-click="selectPrevious()">&laquo;</a>

                    </li>
                    <li ng-repeat="page in pages" ng-class="{active: isActive(page)}"><a
                            ng-click="selectPage(page)">{{page}}</a>

                    </li>
                    <li ng-class="{disabled: noNext()}"><a ng-click="selectNext()">&raquo;</a>

                    </li>
                    <li ng-show="currentPage>6"><a ng-click="selectPage(1)">首页</a>

                    </li>
                </ul>
            </paging>
            <table class="table table-condensed">
                <thead>
                <tr>
                    <th>小区名称</th>
                    <th>用户id</th>
                    <th>用户昵称</th>
                    <th>手机号码</th>
                    <th>单元</th>
                    <th>房号</th>
                    <th>总积分</th>
                    <th>已使用积分</th>
                    <th>剩余积分</th>
                </tr>
                </thead>
                <tbody>
                <tr ng-repeat="result in resultList">
                    <td>{{result.community.communityName}}</td>
                    <td>{{result.objId}}</td>
                    <td>{{result.nickName}}</td>
                    <td>{{result.mobilePhone}}</td>
                    <td>{{result.roomUnit?result.roomUnit:""}}</td>
                    <td>{{result.roomNumber}}</td>
                    <td>{{result.totalValue}}</td>
                    <td>{{result.totalValue - result.currentValue}}</td>
                    <td>{{result.currentValue}}</td>
                </tr>
                </tbody>
            </table>
        </div>
    </div>
</div>

